
import request from "../../utils/request";
import { getStoreId } from "./store";
export function A() {
    return request({
        url: 'admin/store/List',
        method: 'get'
    })
}

export function getlist() {
    return request({
        url: '/admin/store/List',
        method: 'get'
    })
}


export function AddCommodity(infoForm) {
    return request({
        url: '/Commodity/AddCommodity',
        method: 'post',
        params: {
            name: infoForm.name,
            price: infoForm.price,
            originNum: infoForm.originNum,
            Type: infoForm.Type,
            shopId: getStoreId(),
            Picture: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2Fbf12e0dc-11c0-41d9-ba40-e21c80a76795%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1735528782&t=465636b645ccf7ab8677fecb8175b16d'
        }
    })
}
export function getMlist() {
    return request({
        url: '/Commodity/MList',
        method: 'get'
    })
}
